package com.wy.panda.controller;

import org.springframework.web.bind.annotation.ModelAttribute;

import com.wy.panda.common.util.BeanUtils;

import ma.glasnost.orika.MapperFacade;

/**
 * 控制层基类
 * 
 * @author wangyuan
 * @since 2020-9-4 23:04:33
 * 
 */
public abstract class BaseController {

	protected MapperFacade mapperFacade;
	
	@ModelAttribute
	public void before() {
		mapperFacade = BeanUtils.mapperFacade();
	}
}
